package day12.homework2;

public class FactoryProducer {
    public static final String FACTORY_NOTEBOOK = "NoteBook";
    public static final String FACTORY_MOTO_VEHICLE = "MotoVehicle";

    public static AbstractFactory getFactory(String factoryName) {
        if(factoryName.equals(FACTORY_MOTO_VEHICLE))
            return new MotoVehicleFactory();
//        if(factoryName.equals(FACTORY_NOTEBOOK))
//            return new NoteBookFactory();
        return null;
    }
}
